/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja.de.trabajo.pkg5;

/**
 *
 * @author Rodrigo
 */
public class Node{
    
    private int time;
    private int duration;
    private int ntype;
    private int next;
    
    public Node(int time, int duration, int ntype, int next){
        this.time = time;
        this.duration = duration;
        this.ntype = ntype;
        this.next = next;
    }
    
    public int getTime(){
        return time;
    }
    public int getDuration(){
        return duration;
    }
    public int ntype(){
        return ntype;
    }
    public int next(){
        return next;
    }
}
